package com.yohann.designPattern.facade;

/**
 * <p>
 * 客户端
 * </p>
 *
 * @author Yohann
 * @since 2021/2/8 13:27
 */
public class Client {
    public static void main(String[] args) {
        HomeTheaterFacade facade = new HomeTheaterFacade();

        /*
        Popcorn ON
        Popcorn IS POPING
        Screen down
        Projector ON
        Stereo ON
        DVD ON
        TheaterLight dim
        ===================================
        DVD IS PLAYING
        ===================================
        DVD IS pause
        ===================================
        Popcorn OFF
        TheaterLight bright
        Screen up
        Projector OFF
        Stereo OFF
        DVD OFF
         */
        facade.ready();
        System.out.println("===================================");
        facade.play();
        System.out.println("===================================");
        facade.pause();
        System.out.println("===================================");
        facade.end();
    }
}